package com.yami.shop.rights.common.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("tz_rights_external")
public class RightsExternal {

  @TableId(type = IdType.AUTO)
  private long id;
  private String name;
  private String status;
  private long count;
  // 使用个数
  @TableField(exist = false)
  private long useCount;
  // 核销个数
  @TableField(exist = false)
  private long writeOffCount;
  private long shopId;
  private java.sql.Timestamp createTime;

  @TableField(exist = false)
  @Schema(description = "外部导入CODE")
  private String externalCode;
}
